<table width="100%">
	<tr>
		<td width="15%"><?php echo CHtml::image(Yii::app()->request->baseUrl.'/images/logo.png'); ?></td>
		<td width="85%">
		<h4><strong>PT. ANUGERAH BERSAMA BERKAH ABADI</strong></h4>
		<h4><strong>ACCOUNT RECEIVABLE AGING SCHEDULE</strong></h4>
		<h4><strong>AS OF 31 DESEMBER 2014</strong></h4>
		</td>
	</tr>
</table>


<table  border="1">
  <tr>
    <td width="120" align="center"><strong>Client No.</strong></td>
    <td width="145" align="center"><strong>Client Name</strong></td>
    <td width="97" align="center"><strong>Total</strong></td>
    <td width="73" align="center"><strong>Undue</strong></td>
    <td width="73" align="center"><strong>30 Days</strong></td>
    <td width="73" align="center"><strong>60 Days</strong></td>
    <td width="77" align="center"><strong>90 Days</strong></td>
    <td align="center"><strong>>90 Days</strong></td>
  </tr>


  <?php
    foreach($data as $row){
	?>
		<tr>
			<td><?=$row['client_number']?></td>
			<td><?=$row['name']?></td>
			<td align="right"><?=$row["jns_mata_uang"]." ".$row['gross_premi']?></td>
			<td align="center"><?=$row['telat1']?></td>
			<td align="center"><?=$row['telat2']?></td>
			<td align="center"><?=$row['telat3']?></td>
			<td align="center"><?=$row['telat4']?></td>
			<td align="center"><?=$row['telat5']?></td>
		</tr>
	<?php
	}
	?>
	</table>